<%@ page import="mybatis.yang.Book" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/11/21
  Time: 21:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
   <%
     List<Book> book= (List<Book>) request.getSession().getAttribute("books");
     for(Book b:book){
   %>
         <h5><%=b.getProduct_name()%></h5>
         <img src="\images\<%=b.getProduct_picture()%>" width="100px" height="100px"/><br>
         <a href="ShowBook.jsp?name=<%=b.getProduct_name()%>">查看信息</a><br>
         -------------------------------
   <%
        }
   %>

</body>
</html>
